import React from "react";

export interface SparkleIconProps extends React.SVGProps<SVGSVGElement> {
  size?: number;
}

const SparkleIcon = React.forwardRef<SVGSVGElement, SparkleIconProps>(
  ({ size = 10, ...props }, ref) => (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 10 10"
      fill="none"
      ref={ref}
      {...props}
    >
      <path
        d="M5.95917 9.8817C6.1332 9.8817 6.25904 9.76597 6.29169 9.59193C6.72713 7.26303 6.9569 6.9095 9.26881 6.59939C9.45995 6.57374 9.58268 6.43937 9.58268 6.26534C9.58268 6.09132 9.45995 5.95848 9.26881 5.93284C6.97468 5.62273 6.64593 5.28544 6.29169 2.9473C6.2645 2.76471 6.1332 2.64198 5.95917 2.64198C5.79915 2.64198 5.66085 2.75771 5.6352 2.9403C5.21687 5.27074 4.96845 5.61964 2.64954 5.93284C2.46695 5.95848 2.34267 6.09132 2.34267 6.26534C2.34267 6.43937 2.46695 6.5722 2.64954 6.59939C4.9476 6.92797 5.27789 7.23978 5.6352 9.58493C5.65537 9.76597 5.78667 9.8817 5.95917 9.8817ZM2.26393 4.97839C2.39215 4.97839 2.49627 4.88283 2.52037 4.75462C2.75134 3.58974 2.66022 3.59676 3.88959 3.38699C4.02637 3.36836 4.11185 3.25878 4.11185 3.13056C4.11185 3.00936 4.02483 2.89823 3.88959 2.87412C2.6633 2.66968 2.7498 2.66659 2.52037 1.52206C2.49627 1.3923 2.4007 1.28974 2.26393 1.28974C2.13417 1.28974 2.03861 1.3853 2.00749 1.52206C1.7796 2.65737 1.86764 2.65737 0.638265 2.87412C0.508505 2.89977 0.416016 3.00936 0.416016 3.13056C0.416016 3.27434 0.508505 3.36836 0.656899 3.38699C1.86611 3.58906 1.77806 3.58668 2.00749 4.73907C2.03861 4.87583 2.12716 4.97839 2.26393 4.97839ZM5.02025 2.4395C5.10574 2.4395 5.17258 2.37967 5.18968 2.29419C5.34046 1.53175 5.29841 1.54575 6.09355 1.39189C6.18604 1.37481 6.24434 1.30795 6.24434 1.22249C6.24434 1.13701 6.1845 1.0717 6.09201 1.05461C5.29139 0.899214 5.32644 0.899213 5.18968 0.159318C5.17258 0.0668358 5.11274 0 5.02025 0C4.93477 0 4.87493 0.0668366 4.85083 0.16086C4.6891 0.899214 4.75219 0.899214 3.94697 1.05461C3.85447 1.0717 3.80319 1.13701 3.80319 1.22249C3.80319 1.31497 3.85447 1.37327 3.95705 1.39189C4.75219 1.52473 4.6891 1.53175 4.85083 2.28017C4.87493 2.37967 4.93477 2.4395 5.02025 2.4395Z"
        fill="currentColor"
      />
    </svg>
  ),
);

export default SparkleIcon;
